package com.sz.mes.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sz.mes.entity.ReworkTechnique;
import com.sz.mes.entity.Technique;
import com.sz.mes.mapper.ReworkTechniqueMapper;
import com.sz.mes.service.ReworkTechniqueService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* 返工工单相关Service实现
* @author hem
* @version 1.0
* @date 2024-10-26
 * Copyright © szhs
*/
@Service
@Slf4j
public class ReworkTechniqueServiceImpl extends BaseCustomServiceImpl<ReworkTechniqueMapper, ReworkTechnique> implements ReworkTechniqueService {
    private final ReworkTechniqueMapper reworkTechniqueMapper;

    public ReworkTechniqueServiceImpl(ReworkTechniqueMapper reworkTechniqueMapper) {
        this.reworkTechniqueMapper = reworkTechniqueMapper;
    }


    @Override
    public List<ReworkTechnique> getList(String taskNum) {
        QueryWrapper<ReworkTechnique> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("task_num",taskNum);
        List<ReworkTechnique> techniqueList = reworkTechniqueMapper.selectList(queryWrapper);
        return techniqueList;

    }
}
